package com.tt.payee.common;

/**
 * @author Tang
 * @Description: 状态常量类
 * @date:2020-02-27 11:01
 */
public class Constant {
    //=====================修改数据状态============================
    /**
     * 成功
     */
    public static final Integer SUCCEED = 1;


    /**
     * 失败
     */
    public static final Integer LOSE = 0;


    //=====================微信js access_token============================
    /*
     * access_token
     * */
    public static final String WX_ACCESS_TOKEN = "wx_access_token";
    /*
     * access_token过期时间
     * */
    public static final long WX_ACCESS_TOKEN_EXPIRATION_TIME = 7100L;
    /*
     * jsapi_ticket
     * */
    public static final String WX_JSAPI_TICKET = "wx_jsapi_ticket";
    /*
     * jsapi_ticket过期时间
     * */
    public static final long WX_JSAPI_TICKET_EXPIRATION_TIME = 7100L;
    //=====================微信js access_token============================

    //=====================登录Token============================
    /*
     * token过期时间
     * */
    public static final long EXPIRATION_TIME = 3600L * 24 * 7;
    /*
     * token前缀，tb用户
     */
    public static final String BACKEND_TOKEN_PRE = "backend_token";
    /*
     * token前缀，sys用户
     */
    public static final String FRONTEND_TOKEN_PRE = "frontend_token";
    /*
     * 验证码前缀
     */
    public static final String VALIDATE_CODE = "validate_code";
    /*
     * 验证码过期时间
     * */
    public static final long VALIDATE_CODE_EXPIRATION_TIME = 300L;

    /*
     * 小程序appid
     */
    public static final String MINI_APPID = "wx26ec493b024156b1";

    /*
     * 小程序secret
     */
    public static final String MINI_SECRET = "74353f7726f440c7438320f7e09222d3";

    //=====================登录Token============================

    //=====================请求Token============================
    /*
     * token过期时间
     * */
    public static final long REQUEST_EXPIRATION_TIME = 1800L;
    /*
     * token前缀，tb用户
     */
    public static final String REQUEST_TOKEN_PRE = "request_token";
    //=====================请求Token============================


    /*************************** 后台用户状态 ************************************/

    /**
     *  关闭
     */
    public static final Integer USER_STATUS_CLOSE = 0;

    /**
     * 启用
     */
    public static final Integer USER_STATUS_OPEN = 1;

    /**
     * 删除
     */
    public static final Integer USER_STATUS_DELETE = -1;
}
